package io.github.ali.commons.validate;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @author ALi
 * @version 1.0
 * @date 2024-04-30 11:14
 * @description
 */
public class SomeRequest {
    @NotEmpty(message = "用户名不能为空")
    @NotNull(message = "用户名不能为空")
    private String loginName;
    @NotEmpty(message = "密码不能为空")
    private String loginPass;

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getLoginPass() {
        return loginPass;
    }

    public void setLoginPass(String loginPass) {
        this.loginPass = loginPass;
    }
}
